package com.kapcb.mybatis.plus.core;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <a>Title: BaseEntity </a>
 * <a>Author: cb <a>
 * <a>Description: BaseEntity <a>
 *
 * @author cb
 * @version 1.0
 * @date 2025/2/20 9:38 AM
 * @since 1.0
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1001344972676629863L;

    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
